#include<bits/stdc++.h>
using namespace std;
int r[100010];
int main() {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    int n;
    cin >> n;
    for (int i = 0; i < n; ++i) {
        scanf("%d", r + i);
    }
    sort(r, r + n);
    int p = 0, cnt = n;
    for (int i = 1; i < n; ++i) {
        if (r[i] > r[p]) {
            --cnt;
            ++p;
        }
    }
    cout << cnt << endl;
    fclose(stdin);
    fclose(stdout);
    return 0;
}